package com.multitrack.datatype;

import java.io.Serializable;

import com.google.android.maps.GeoPoint;

import android.location.Location;

public class GPS implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -666701273021621898L;
	
	private long time;
	private double lat;
	private double lon;
	private double alt;
	
	
	public GPS() {
		
	}

	public GPS(Location loc) {
		time = loc.getTime();
		lat = loc.getLatitude();
		lon = loc.getLongitude();
		alt = loc.getAltitude();
	}
	
	public GPS(double lat, double lon) {
		this.lat = lat;
		this.lon = lon;
	}
	
	public GPS(double lat, double lon, double alt) {
		this.lat = lat;
		this.lon = lon;
		this.alt = alt;
	}
	
	public GPS(long time, double lat, double lon, double alt) {
		this.time = time;
		this.lat = lat;
		this.lon = lon;
		this.alt = alt;
	}

	public long getTime() {
		return time;
	}

	public void setTime(long time) {
		this.time = time;
	}

	public double getLat() {
		return lat;
	}

	public void setLat(double lat) {
		this.lat = lat;
	}

	public double getLon() {
		return lon;
	}

	public void setLon(double lon) {
		this.lon = lon;
	}

	public double getAlt() {
		return alt;
	}

	public void setAlt(double alt) {
		this.alt = alt;
	}
	
	

	
}
